package com.springmvc.web.pub.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author WangRuChao
 * @since 2017-11-24
 */
@Controller
@RequestMapping("/")
public class IndexController {


	@ResponseBody
	@RequestMapping
	public String index(Model model, HttpServletRequest request, HttpServletResponse response) throws Exception {
		return "Hello World!";
	}

}
